package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liu
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_medicine_info")
@ApiModel(value="MedicineInfo对象", description="")
public class MedicineInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "药品id")
    @TableId(value = "m_id", type = IdType.AUTO)
    private Integer mId;

    @ApiModelProperty(value = "药品通用名")
    @TableField("m_name")
    private String mName;

    @ApiModelProperty(value = "药品规格")
    @TableField("m_specification")
    private String mSpecification;

    @ApiModelProperty(value = "生产厂家")
    @TableField("m_manufacturer")
    private String mManufacturer;

    @ApiModelProperty(value = "功能主治")
    @TableField("m_majorfunction")
    private String mMajorfunction;

    @ApiModelProperty(value = "不良反应")
    @TableField("m_adversereaction")
    private String mAdversereaction;

    @ApiModelProperty(value = "禁忌")
    @TableField("m_taboos")
    private String mTaboos;

    @ApiModelProperty(value = "有效期")
    @TableField("m_validuntil")
    private LocalDate mValiduntil;

    @ApiModelProperty(value = "药品种类")
    @TableField("m_kinds")
    private String mKinds;

    @ApiModelProperty(value = "批次号")
    @TableField("m_batchnum")
    private Integer mBatchnum;

    @ApiModelProperty(value = "批准文号")
    @TableField("m_approvalnum")
    private Integer mApprovalnum;

    @ApiModelProperty(value = "是否非处方药")
    @TableField("m_otc")
    private String mOtc;


}
